<?php /* Smarty version 2.6.18, created on 2010-09-08 14:44:16
         compiled from alumni/profile/signup.tpl */ ?>
<div id="solvay_content2010">
 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/left_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <div id="content2010_right">
  	<div class="ctn_contentright2010">
      <div class="content_tab">
        <div class="title_contenttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
              <tr>
                  <td align="left">Registration</td>
                </tr>
            </table>
       </div>
       <div class="ctn_texttab">
       <form name="frmSignUp" id="frmSignUp" action="" method="post" onsubmit="return checkFrmSignUp(this)">
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
          <td colspan="2" width="190" class="text_13" align="center">
            <?php echo $this->_tpl_vars['STR_MSG']; ?>

          </td>
        </tr>
        <tr>
          <td width="190" class="text_13">Username <span style="color:#FF0000">*</span></td>
            <td class="text_13"><input type="text" name="username" id="username" class="input2010_300" value="<?php echo $this->_tpl_vars['arrForm']['username']; ?>
"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Password <span style="color:#FF0000">*</span></td>
            <td class="text_13_bg"><input type="password" name="password" id="password" class="input2010_300"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13">Confirm password <span style="color:#FF0000">*</span></td>
            <td class="text_13"><input type="password" name="confirm_password" id="confirm_password" class="input2010_300"  /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Full name <span style="color:#FF0000">*</span></td>
            <td class="text_13_bg"><input type="text" name="full_name" id="full_name" class="input2010_300" value="<?php echo $this->_tpl_vars['arrForm']['full_name']; ?>
" /></td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13">Gender</td>
            <td class="text_13">
              <select name="gender" id="gender" class="select2010_300">
                  <option value="0"<?php if ($this->_tpl_vars['arrForm']['gender'] == 0): ?> selected="selected"<?php endif; ?>>Male</option>
                    <option value="1"<?php if ($this->_tpl_vars['arrForm']['gender'] == 1): ?> selected="selected"<?php endif; ?>>Female</option>
                </select>
            </td>
        </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td width="190" class="text_13_bg">Date of birth</td>
            <td class="text_13_bg">
              <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td align="left">
                  <select name="day_dob" id="day_dob" class="select2010_95">
                    <option value="00"> -- Day -- </option>
                    <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=32) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                      <option<?php if ($this->_tpl_vars['arrForm']['day_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                    <?php endfor; endif; ?>  
                  </select>
                </td>
                <td width="5"></td>
                  <td align="left">
                  	<select name="month_dob" id="month_dob" class="select2010_95">
                      <option value="00"> -- Month -- </option>
                      <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=13) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                        <option<?php if ($this->_tpl_vars['arrForm']['month_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                      <?php endfor; endif; ?>  
                    </select>
                  </td>
                <td width="5"></td>
                <td align="left">
                  <select name="year_dob" id="year_dob" class="select2010_95">
                    <option value="0000"> -- Year -- </option>
                    <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1940;
$this->_sections['foo']['loop'] = is_array($_loop=2010) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
                      <option<?php if ($this->_tpl_vars['arrForm']['year_dob'] == $this->_sections['foo']['index']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_sections['foo']['index']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_sections['foo']['index']; ?>
</option>
                    <?php endfor; endif; ?>  
                  </select>
                </td>
              </tr>
              
            </table>
            </td>
        </tr>
        <tr>
            <td width="190" class="text_13">Intake</td>
              <td class="text_13">
                <select name="intake_id" id="intake_id" class="select2010_300">
                	<option value=""> -- Choose -- </option>
                 	<?php $_from = $this->_tpl_vars['arrIntake']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIntake'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIntake']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIntake'] => $this->_tpl_vars['itemIntake']):
        $this->_foreach['nameIntake']['iteration']++;
?>
                  	<option value="<?php echo $this->_tpl_vars['itemIntake']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemIntake']['intake_name']; ?>
</option>
                  <?php endforeach; endif; unset($_from); ?>
                 </select>
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
          <tr>
            <td width="190" class="text_13_bg">Number phone</td>
              <td class="text_13_bg">
                <input type="text" name="private_tel" id="private_tel" class="input2010_300" value="<?php echo $this->_tpl_vars['arrForm']['private_tel']; ?>
" />
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
          <tr>
            <td width="190" class="text_13">Email</td>
              <td class="text_13">
                <input type="text" name="private_email" id="private_email" class="input2010_300" value="<?php echo $this->_tpl_vars['arrForm']['private_email']; ?>
" />
              </td>
          </tr>
          <tr>
            <td colspan="2" height="10"></td>
          </tr>
        <tr>
          <td colspan="2" height="10"></td>
        </tr>
        <tr>
          <td colspan="2" width="190" class="text_13" align="center">
            <input type="submit" name="" class="btn_login2010" value="Sign Up" />
          </td>
        </tr>
        </table>
       </form>
       </div>
          
      </div>
  	</div>
  </div>
</div>
<script type="text/javascript">
	function checkFrmSignUp(p_objForm)
	{
		if ( trim(p_objForm.username.value) == "")
		{
			alert("Please input username.");
			p_objForm.username.focus();
			return false;
		}
		if ( !CheckUsernameChar(trim(p_objForm.username.value)) )
		{
			alert("Username invalid.");
			p_objForm.username.focus();
			return false;
		}
		if ( trim(p_objForm.password.value) == "")
		{
			alert("Please input password.");
			p_objForm.password.focus();
			return false;
		}
		if ( !CheckCharPassword(trim(p_objForm.password.value)) )
		{
			alert("Password invalid.");
			p_objForm.password.focus();
			return false;
		}
		if ( trim(p_objForm.password.value) != trim(p_objForm.confirm_password.value) )
		{
			alert("Confirm password not match!");
			p_objForm.confirm_password.focus();
			return false;
		}
		if ( trim(p_objForm.full_name.value) == "")
		{
			alert("Please input full name.");
			p_objForm.full_name.focus();
			return false;
		}
	}
</script>